package org.jypj.dev.model;

import com.google.gson.Gson;

/**
 * @author chenyu
 */
public class GiveWork implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    private String id; //主键ID
    private String roadId; //交路ID
    private String userId; //
    private String workDate; //派班日期
    private String trainNum;//车组号
    private String hadResp; //有无应答(0,1)
    private String respTime; //用户应答时间
    private String remindTime; //提醒推送时间
    private int hadRemind; //是否已经推送过(0,1)表明是否收到过回执用于渲染页面
    private int isRemind;//定时器是否已经推送过
    private String remindContent;//推送内容

    private String userNum;//用户编号
    private String userName;//用户姓名
    private String roadName;//交路名称
    private String firstTrainCode;//交路中第一个车次

    public GiveWork() {
    }

    public GiveWork(String id) {
        this.id = id;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRoadId() {
        return this.roadId;
    }

    public void setRoadId(String roadId) {
        this.roadId = roadId;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getWorkDate() {
        return this.workDate;
    }

    public void setWorkDate(String workDate) {
        this.workDate = workDate;
    }

    public String getHadResp() {
        return this.hadResp;
    }

    public void setHadResp(String hadResp) {
        this.hadResp = hadResp;
    }

    public String getRespTime() {
        return this.respTime;
    }

    public void setRespTime(String respTime) {
        this.respTime = respTime;
    }

    public String getRemindTime() {
        return this.remindTime;
    }

    public void setRemindTime(String remindTime) {
        this.remindTime = remindTime;
    }

    public int getHadRemind() {
        return hadRemind;
    }

    public void setHadRemind(int hadRemind) {
        this.hadRemind = hadRemind;
    }

    public String getUserNum() {
        return userNum;
    }

    public void setUserNum(String userNum) {
        this.userNum = userNum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRoadName() {
        return roadName;
    }

    public void setRoadName(String roadName) {
        this.roadName = roadName;
    }

    public String getTrainNum() {
        return trainNum;
    }

    public void setTrainNum(String trainNum) {
        this.trainNum = trainNum;
    }

    public int getIsRemind() {
        return isRemind;
    }

    public void setIsRemind(int isRemind) {
        this.isRemind = isRemind;
    }

    public String getRemindContent() {
        return remindContent;
    }

    public void setRemindContent(String remindContent) {
        this.remindContent = remindContent;
    }

    public String getFirstTrainCode() {
        return firstTrainCode;
    }

    public void setFirstTrainCode(String firstTrainCode) {
        this.firstTrainCode = firstTrainCode;
    }

    @Override
    public String toString() {

        return new Gson().toJson(this);
    }

}